package com.blank.black.entity.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * example配置表
 * </p>
 *
 * @author htr
 * @since 2024-02-23
 */
public class BlankConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    private Long id;

    /**
     * 前置url（如果有则校验请求url是否为指定前缀）
     */
    private String preUrl;

    /**
     * 配置名称，英文缩写
     */
    private String configName;

    /**
     * 父级Id
     */
    private Long pid;

    /**
     * 父级字段名，以·,·分割
     */
    private String pcolName;

    /**
     * 类型：1：select;2:insert;3update;4:delete
     */
    private Integer type;

    /**
     * 数据库名
     */
    private String tableSchema;

    /**
     * 主表名
     */
    private String tableName;

    /**
     * 表别名
     */
    private String tableAlias;

    /**
     * 是否唯一：1:true,0:false
     */
    private Integer distinctFlag;

    /**
     * 是否分页：1:true,0:false
     */
    private Integer pageFlag;

    /**
     * 默认分页大小
     */
    private Integer pageSize;

    /**
     * 条件组分割符：1:and,2:or
     */
    private Integer split;

    /**
     * 默认排序
     */
    private String orderByClause;

    /**
     * 配置描述
     */
    private String configComment;

    /**
     * 启用标志：1在用0已弃用
     */
    private Integer enableFlag;

    /**
     * 修改人
     */
    private String updateUser;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 创建人
     */
    private String createUser;

    /**
     * 创建时间
     */
    private Date createTime;

    private List<ConfigCol> colList;

    private List<ConfigCriteria> criteriaList;

    private List<ConfigJoin> joinList;

    private Integer countChild;

    private List<BlankConfig> childList;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPreUrl() {
        return preUrl;
    }

    public void setPreUrl(String preUrl) {
        this.preUrl = preUrl;
    }

    public String getConfigName() {
        return configName;
    }

    public void setConfigName(String configName) {
        this.configName = configName;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getPcolName() {
        return pcolName;
    }

    public void setPcolName(String pcolName) {
        this.pcolName = pcolName;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public Integer getDistinctFlag() {
        return distinctFlag;
    }

    public void setDistinctFlag(Integer distinctFlag) {
        this.distinctFlag = distinctFlag;
    }

    public Integer getPageFlag() {
        return pageFlag;
    }

    public void setPageFlag(Integer pageFlag) {
        this.pageFlag = pageFlag;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getSplit() {
        return split;
    }

    public void setSplit(Integer split) {
        this.split = split;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getConfigComment() {
        return configComment;
    }

    public void setConfigComment(String configComment) {
        this.configComment = configComment;
    }

    public Integer getEnableFlag() {
        return enableFlag;
    }

    public void setEnableFlag(Integer enableFlag) {
        this.enableFlag = enableFlag;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public List<ConfigCol> getColList() {
        return colList;
    }

    public void setColList(List<ConfigCol> colList) {
        this.colList = colList;
    }

    public List<ConfigCriteria> getCriteriaList() {
        return criteriaList;
    }

    public void setCriteriaList(List<ConfigCriteria> criteriaList) {
        this.criteriaList = criteriaList;
    }

    public List<ConfigJoin> getJoinList() {
        return joinList;
    }

    public void setJoinList(List<ConfigJoin> joinList) {
        this.joinList = joinList;
    }

    public Integer getCountChild() {
        return countChild;
    }

    public void setCountChild(Integer countChild) {
        this.countChild = countChild;
    }

    public List<BlankConfig> getChildList() {
        return childList;
    }

    public void setChildList(List<BlankConfig> childList) {
        this.childList = childList;
    }

    public String getTableAlias() {
        return tableAlias;
    }

    public void setTableAlias(String tableAlias) {
        this.tableAlias = tableAlias;
    }

    public String getTableSchema() {
        return tableSchema;
    }

    public void setTableSchema(String tableSchema) {
        this.tableSchema = tableSchema;
    }
}
